home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 1
/
Cream of the Crop 1.iso
/
OS2
/
FSHL125.ARJ
/
PSEUDO.FSH
< prev
next >
Wrap
Text File
|
1992-04-03
|
2KB
|
56 lines
@echo off
echo Good %_GREETING_%! What follows are examples of the use of
echo the FSHL Pseudo Environment variables. Each Pseudo Environment
echo variable supported by %_FSHL_% is exercised here.
echo.
pause Strike any key to show the list . . .
echo.
echo _CODEPAGE_ is [%_CODEPAGE_%]
echo _DATE_ is [%_DATE_%]
echo _ERRORLEVEL_ is [%_ERRORLEVEL_%]
echo _FSHL_ is [%_FSHL_%]
echo _GREETING_ is [%_GREETING_%]
echo _OSVERSION_ is [%_OSVERSION_%]
echo _SCREENGROUP_ is [%_SCREENGROUP_%]
echo _SCREENTYPE_ is [%_SCREENTYPE_%]
echo _TIME_ is [%_TIME_%]
echo _WEEKDAY_ is [%_WEEKDAY_%]
echo _HISTORY_ is [%_HISTORY_%]
echo _DATEYMD_ is [%_DATEYMD_%]
echo _YEAR_ is [%_YEAR_%]
echo _MONTH_ is [%_MONTH_%]
echo _MONTHDAY_ is [%_MONTHDAY_%]
echo _MONTHNAME_ is [%_MONTHNAME_%]
echo.
echo Strike a key to see some more examples of the use of Pseudo
pause Environment Variables.
comparenocase
echo.
echo Again, Good %_GREETING_% to you, the time is %_TIME_% on
echo %_WEEKDAY_% %_MONTHNAME_% %_MONTHDAY_%, %_YEAR_% (or, as it would appear
echo in your FSHL command prompt: "%_DATE_%").
echo.
if %_WEEKDAY_% == Sunday goto Gripe
if %_WEEKDAY_% == Saturday goto Gripe
goto Next
:Gripe
echo Although I don't know why you're working on a %_WEEKDAY_% %_GREETING_%!
echo.
:Next
echo %_OSVERSION_% and you are running
echo %_FSHL_% in a %_SCREENTYPE_% session (screen group %_SCREENGROUP_%).
echo The active codepage is %_CODEPAGE_%, and the last program you ran at
echo FSHL prompt in this session returned an errorlevel of %_ERRORLEVEL_%.
if errorlevel != 0 echo (Did something go wrong that you have a non-zero errorlevel?)
echo.
echo Thanks for taking time out of your busy %_GREETING_% to take a look
echo at %_FSHL_%. I hope that find it useful!
echo.
pause Press any key to return to the FSHL prompt . . .